package com.example.automobile_positioning.fragment;

import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.Window;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.GridView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;

import com.example.automobile_positioning.BaiduMapActivity;
import com.example.automobile_positioning.R;
//import com.example.automobile_positioning.activity.MapActivity;

public class Locationfragment extends Fragment{
	
	
	private View view;
	private LinearLayout mLocation;
	public void Locationfragment() {
		// TODO Auto-generated constructor stub
	}
	
	
	public static Locationfragment newInstance(){
		Locationfragment locationfragment=new Locationfragment();
		Bundle bundle=new Bundle();
		locationfragment.setArguments(bundle);
		return null;
	}

	@Override
	public void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		
	}
	
	
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		view = inflater.inflate(R.layout.activity_location, container, false);
		mLocation = (LinearLayout) view.findViewById(R.id.rl_location);
		mLocation.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intent=new Intent(getActivity(),BaiduMapActivity.class);
				startActivity(intent);
			}
		});
		return view;
	}
	

}
